From: Joey Hess Date: Mon, 15 Sep 2025 22:50:42 +0000 (-0400) Subject: bug X-Git-Tag: archive/raspbian/10.20251029-1+rpi1~1^2~3^2~106 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=0e7d469f89afdf21807a8f2d64997a1f595f3d69;p=git-annex.git bug --- diff --git a/doc/bugs/yt-dlp_mojibake.mdwn b/doc/bugs/yt-dlp_mojibake.mdwn new file mode 100644 index 0000000000..e4133f4fdc --- /dev/null +++ b/doc/bugs/yt-dlp_mojibake.mdwn @@ -0,0 +1,22 @@ +git-annex importfeed from an AvE video failed: + + renamePath:rename '/home/joey/lib/big/.git/annex/tmp/work.URL--yt&chttps&c%%www.youtube.com%watch,63v,61HPajFNxnuN8/ï¼ÂCorrectionï¼ hydraulic spool motor [HPajFNxnuN8].webm' to '../.git/annex/tmp/URL--yt&chttps&c%%www.youtube.com%watch,63v,61HPajFNxnuN8': does not exist (No such file or directory) + +Here's the file list: + + joey@darkstar:~/lib/big>cat .git/annex/tmp/work.URL--yt\&chttps\&c%%www.youtube.com%watch\,63v\,61HPajFNxnuN8/git-annex-file-list-file + /home/joey/lib/big/.git/annex/tmp/work.URL--yt&chttps&c%%www.youtube.com%watch,63v,61HPajFNxnuN8/*Correction* hydraulic spool motor [HPajFNxnuN8].webm + /home/joey/lib/big/.git/annex/tmp/work.URL--yt&chttps&c%%www.youtube.com%watch,63v,61HPajFNxnuN8/*Correction* hydraulic spool motor [HPajFNxnuN8].webm + +And the video was written to the file: + ".git/annex/tmp/work.URL--yt&chttps&c%%www.youtube.com%watch,63v,61HPajFNxnuN8/*Correction* hydraulic spool motor [HPajFNxnuN8].webm" + +This only affects a git-annex built with OsPath, and only recently +(not a released version). + +Unfortunatly, it is a bug in file-io: + + +To fix it, git-annex will need to wrap file-io and call +`getLocaleEncoding >>= hSetEncoding h` on each opened Handle. Or depend on +a fixed version. --[[Joey]]